//
//  SystemManager.h
//  newBooks
//
//  Created by 张 on 2019/1/11.
//  Copyright © 2019年 pro2. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@interface SystemManager : NSObject <XHLaunchAdDelegate,CLLocationManagerDelegate>

//AS_SINGLETON(SystemManager)

@property (nonatomic, strong) CLLocationManager *locationManager;
@property (nonatomic, copy) void(^localBlock)(NSString * weatherStr,NSString * weatherImg);

/**
 获取启动参数-开屏广告、版本更新
 */

+(SystemManager *)shareManager;

/**
 获取日期

 @param pan 分隔方式
 @return string
 */
+ (NSString *)getDateWith:(NSString *)pan;

/**
 获取当前城市天气

 @param successBlock 天气
 */
- (void)getLocalWeatherwithBlock:(void(^)(NSString * weatherStr,NSString * weatherImg))successBlock;

@end
